#include <curlpp/cURLpp.hpp>
#include <curlpp/Easy.hpp>
#include <curlpp/Options.hpp>
#include <curlpp/Exception.hpp>
#include <curlpp/Infos.hpp>

#include "conn.hpp"

namespace net
{

	Conn::Conn()
	{
		curlpp::Cleanup cleaner;
		curlpp::Easy request;
		Cookie myCookie;
	}

	void Conn::setUrl(string newurl)
	{
		url = newurl;
	}

	void Conn::setPost(list<pair<string, string> > postData)
	{
		typedef list<pair<string, string> > myT;
		myT::iterator p = postData.begin();
		while(p != postData.end())
		{
			formParts.push_back(
			new curlpp::FormParts::Content(p->first, p->second));
		}
	}
	string sendRequest()
	{
		return string("TODO");
	}

}
